<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>测试请求参数</title>
</head>
<body>
<h1>测试请求参数</h1>
<a th:href="@{/testServletAPI(username='admin',password='123456')}">测试servletAPI获取请求参数</a><br>
==============================================<br>
<a th:href="@{/testParam(username='admin',password='123456')}">测试控制器的形参获取请求参数</a>
==============================================<br>
<!--http://localhost:8080/springMVC_demo02/test_param?username=admin&password=123&hobby=b&hobby=c-->
<form th:action="@{/testParam}" method="post">
    用户名:<input type="text" name="user_name"><br>
    密码:<input type="password" name="password"><br>
    爱好:<input type="checkbox" name="hobby" value="a">
    <input type="checkbox" name="hobby" value="b">
    <input type="checkbox" name="hobby" value="c"><br>
    <input type="submit" value="测试控制器的形参获取请求参数BY form">
</form>
</body>
</html>